package com.springhone.side.web;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
@RequestMapping("/tutorial")
public class TutorialController {
    @RequestMapping(value="/{name}", method = RequestMethod.GET)
    public String getTutorial(@PathVariable String name, ModelMap model) {
        model.addAttribute("tutorial", name);
        return "tutorial/tutorial";
    }
}
